#!/usr/bin/js

function tabla(n,m) {
//Declaramos las variables 
var tabla="table";
var columna="td";
var fila = "tr";
for (i=1; i<=n; i++ ) { 
    print( "<"+fila+">"); 
	for ( j=1; j<=m; j++ ) { 
  	print ("<"+columna+">" +i*j+ "</"+columna+">"); 
	}
	print("</"+fila+">");
}
print ("</"+tabla+">");

}
tabla(4,4)
